#include "my_service_impl.h"
#include "xlcomm/net/protorpc/rpc_channel_server.h"
using namespace xlcomm;

int main() {
  Logger::SetLogLevel(Logger::kDebug);

  net::EventLoop loop;
  MyService* my_service = new MyServiceImpl();
  net::RpcChannelServer server(&loop, net::InetAddress(40001));
  server.RegisterService(my_service);
  server.Start();

  loop.Loop();
}